<?php

namespace AppBundle\Controller;


use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;

class MessageController extends Controller
{


    /**
     * @Route("/message")
     */
    public function getAction()
    {
        $message=$this->container->get('app.message_generator')->getHappyMessage();



        return $this->render('AppBundle:Message:get.html.twig', array(
            'message'=>$message
        ));
    }

}
